import httpRequest from "@/http"
import { MyResponseType } from "@/bean/base/response";
import { MyPageResponseType } from "@/bean/base/page";
import { MkMember, mkMemberTypeBankVo } from "@/bean/mk/MkMember";





export const doQuestionByTypeApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<Object>>(`/mk/question/submitQuestionByType`,params);
}


export const doExamApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<Object>>(`/mk/question/createTempExam`,params);
}

export const signInApi = () => {
    return httpRequest.postNoParam<MyResponseType<Object>>(`/mk/question/signIn`);
}


export const courseStudyApi = () => {
    return httpRequest.postNoParam<MyResponseType<Object>>(`/mk/question/courseStudy`);
}


export const studyKnowledgeOneApi = () => {
    return httpRequest.postNoParam<MyResponseType<Object>>(`/mk/question/studyKnowledgeOne`);
}


export const dayStatusApi = () => {
    return httpRequest.postNoParam<MyResponseType<Object>>(`/mk/question/dayStatus`);
}

export const dayMonthStatusApi = () => {
    return httpRequest.postNoParam<MyResponseType<Object>>(`/mk/question/monthStatus`);
}

export const monthStatusByTypeApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<Object>>("/mk/question/monthStatusByType",params);
}

export const refaushDoTimeLenApi = () => {
    return httpRequest.postNoParam<MyResponseType<Object>>(`/mk/question/refaushDoTimeLen`);
}

export const viewDayStatusListApi = (params:Object) => {
    return httpRequest.post<MyResponseType<MyPageResponseType<MkMember>>>("/mk/status/list",params);
}

export const viewMonthStatusListApi = (params:Object) => {
    return httpRequest.post<MyResponseType<MyPageResponseType<MkMember>>>("/mk/monthStatus/list",params);
}


export const getTypeBankListApi = (params:Object) => {
    return httpRequest.post<MyResponseType<MyPageResponseType<mkMemberTypeBankVo>>>("/mk/mkMemberTypeBank/getTypeBankList",params);
}

export const updateBankByIdApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<MyPageResponseType<Object>>>("/mk/mkMemberTypeBank/updateBankById",params);
}

export const changeBankByIdApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<MyPageResponseType<Object>>>("/mk/mkMemberTypeBank/changeBankById",params);
}


export const runQuestionByMemberIdApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<Object>>("/mk/question/runQuestionByMemberId",params);
}


export const addDoQuestionTimeByIdApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<Object>>("/mk/question/addDoQuestionTimeById",params);
}

export const practiceAddTimeByParamApi = (params:Object) => {
    return httpRequest.postLink<MyResponseType<Object>>("/mk/question/practiceAddTimeByParam",params);
}
